// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.UserThumbRecordDao;
import com.liuxinlong.modules.entity.UserThumbRecord;
import com.liuxinlong.modules.mapper.UserThumbRecordMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年4月25日
 */
@Service
public class UserThumbRecordDaoImpl extends ServiceImpl<UserThumbRecordMapper, UserThumbRecord> implements UserThumbRecordDao {

    @Override
    public List<UserThumbRecord> pageUserThumbRecordList(Map<String, Object> queryParam) {
        return baseMapper.pageUserThumbRecordList(queryParam);
    }

    @Override
    public int getUserThumbRecordCount(Map<String, Object> queryParam) {
        return baseMapper.getUserThumbRecordCount(queryParam);
    }

    @Override
    public Map<String, Map<String, String>> queryThumbCountMap(List<String> cardList) {
        return baseMapper.queryThumbCountMap(cardList);
    }

    @Override
    public Map<String, Map<String, String>> queryUserThumbCardMap(List<String> cardList, String userId) {
        return baseMapper.queryUserThumbCardMap(cardList,userId);
    }

    @Override
    public UserThumbRecord getUserThumbRecord(String cardId, String userId) {
        return baseMapper.getUserThumbRecord(cardId,userId);
    }
}
